function publishingWrapSize() {
	var container =$("#pub_wrap");
	if (self.innerHeight) {    
	        winH = self.innerHeight;
	    } else if (document.documentElement && document.documentElement.clientHeight) { 
	        winH = document.documentElement.clientHeight;
	    } else if (document.body) { 
	        winH = document.body.clientHeight;
	    }
	$(container).height(winH); 
	var otherHeight = $("#pub_header").height() + $("#sub_header").height();
	var setContentH = (winH - otherHeight - 60);
	$("#pub_content").height(setContentH);
	
	$("#menu_area").height(setContentH-2);
	$("#content_area").height(setContentH-2);
	
	var setLeftH = setContentH - $("#left_fixed").height();
	var setRightH = $("#content_area").height() - $("#right_fixed").height();
	
	$("#left_dynamic").height(setLeftH);
	$("#right_dynamic").height(setRightH);
	$("#right_dynamic .scroll_content").height(setRightH -10);
	
	if($("#pub_layer_bg").hasClass("on")) {
		$("#pub_layer_bg").height(winH);
	}
}

function publishing_layer() {
	$("#pub_layer_bg").height($("#pub_wrap").height());
	$("#pub_layer_bg").addClass("on");
	$("#pub_layer").css({
		"margin-top" : -($("#pub_layer").height() / 2) + "px",
		"margin-left" : -($("#pub_layer").width() / 2) + "px"
	});
	$("#pub_layer").addClass("on");
}

function publishing_layer_close (){
	$("#pub_layer_bg").removeClass("on");
	$("#pub_layer").removeClass("on");
}